<h1>Report Roll</h1>
<?php
$this->renderPartial('application.modules.member.views.main.info');
?>
<br />
<h2>Roll Manager Board</h2>
<div class="list">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th width="10">No.</th>
            <th width="80">#ID Class</th>
            <th>ID Member</th>
            <th width="10">Status</th>
            <th width="180">Tanggal Roll</th>
            <th width="50">Geneologi</th>
        </tr>
        <?php
        if ($board_network) {
            $no = 1;
            foreach ($board_network as $id => $row_network) {
                $board_manager = vo_network::get_board_roll(1, $row_network['board_network_id']);

                if ($board_manager) {
                    foreach ($board_manager as $row_manager) {
                        $status = 'ROLL';
                        $top_mid = vo_network::get_board_network_mid($row_manager['board_leader_board_network_id']);

                        echo '<tr>';
                        echo '<td align="right">' . $no . '.</td>';
                        echo '<td align="center">#' . $row_manager['board_id'] . '</td>';
                        echo '<td align="center">' . $row_network['board_network_network_mid'] . '</td>';
                        echo '<td align="center">' . $status . '</td>';
                        echo '<td align="center">' . function_lib::convert_datetime($row_manager['board_end_datetime'], 'text', '', ':', 'ina') . '</td>';
                        echo '<td align="center"><a href="' . Yii::app()->getBaseUrl() . '/member/board/geneology/cycle/' . $row_network['board_network_network_mid'] . '/1">Geneologi</a></td>';
                        echo '</tr>';
                        $no++;
                    }
                } 
            }
        } else {
            echo '<tr><td colspan="6" align="center">-----====-----</td></tr>';
        }
        ?>
    </table>
</div>

<br />
<h2>Roll Director Board</h2>
<div class="list">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th width="10">No.</th>
            <th width="80">#ID Class</th>
            <th>ID Member</th>
            <th width="10">Status</th>
            <th width="180">Tanggal Roll</th>
            <th width="50">Geneologi</th>
        </tr>
        <?php
        if ($board_network) {
            $no = 1;
            foreach ($board_network as $id => $row_network) {
                $board_director = vo_network::get_board_roll(2, $row_network['board_network_id']);

                if ($board_director) {
                    foreach ($board_director as $row_director) {
                        $status = 'ROLL';
                        $top_mid = vo_network::get_board_network_mid($row_director['board_leader_board_network_id']);

                        echo '<tr>';
                        echo '<td align="right">' . $no . '.</td>';
                        echo '<td align="center">#' . $row_director['board_id'] . '</td>';
                        echo '<td align="center">' . $row_network['board_network_network_mid'] . '</td>';
                        echo '<td align="center">' . $status . '</td>';
                        echo '<td align="center">' . function_lib::convert_datetime($row_director['board_roll_datetime'], 'text', '', ':', 'ina') . '</td>';
                        echo '<td align="center"><a href="' . Yii::app()->getBaseUrl() . '/member/board/geneology/cycle/' . $row_network['board_network_network_mid'] . '/2">Geneologi</a></td>';
                        echo '</tr>';
                        $no++;
                    }
                }
            }
        } else {
            echo '<tr><td colspan="6" align="center">-----====-----</td></tr>';
        }
        ?>
    </table>
</div>